package com.shawn.server.exception;

import com.shawn.model.vo.ErrorResult;
import lombok.Data;

/**
 * 业务异常
 *
 * @author lenovo
 * @date 2022/10/26
 */
@Data
public class BusinessException extends RuntimeException {
        private ErrorResult errorResult;
        public BusinessException(ErrorResult errorResult) {
            super(errorResult.getErrMessage());
            this.errorResult = errorResult;
        }
    }

